package com.ys.controller.api.inter.sys;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ys.service.sys.CommonService;
import com.ys.vo.R;

@Controller
@RequestMapping("/api/inter/common")
public class ApiInterCommonController {
	
//	private static final Logger logger = Logger.getLogger(ApiAdminLoginController.class);

	@Autowired
	private CommonService commonService;
	
	/**
	 * 在表格上编辑
	 */
	@PostMapping("/editOnTable")
    @ResponseBody
	public R editOnTable(Model model, HttpServletRequest request, HttpServletResponse response){
		
		return commonService.editOnTable(request);
	}
}
